import { dataQueryAxios } from '@/utils/request'

//企业查询列表
export const IndustryChainList = (data: any): Promise<any> => {
  return dataQueryAxios({
    url: `/api/data-query/v1/supply-chains/search`,
    method: 'post',
    data
  })
}

//供应链列表查询
export const Supply_chainList = (params: any): Promise<any> => {
  return dataQueryAxios({
    url: `/api/data-query/v1/supply-chains/${params.id}/supply_company_infos`,
    method: 'get',
    params
  })
}
//供应商详情
export const SupplyChainDetail = (params: any): Promise<any> => {
  return dataQueryAxios({
    url: `/api/data-query/v1/supply-chains/supply_company/${params.id}`,
    method: 'get',
    params
  })
}

//供应商选择导出
export const SupplyChainexports = (data: any): Promise<any> => {
  return dataQueryAxios({
    url: `/api/data-query/v1/supply-chains/${data.id}:export`,
    method: 'post',
    data
  })
}
//供应商导出全部
export const SupplyChainexportsall = (data: any): Promise<any> => {
  return dataQueryAxios({
    url: `/api/data-query/v1/supply-chains/${data.id}:export-all`,
    method: 'post',
    data
  })
}
